package com.itheima.pinda.mapstruct;

import com.itheima.pinda.DTO.angency.FleetDto;
import com.itheima.pinda.DTO.truck.TruckDto;
import com.itheima.pinda.DTO.truck.TruckLicenseDto;
import com.itheima.pinda.DTO.truck.TruckTypeDto;
import com.itheima.pinda.entity.agency.PdFleet;
import com.itheima.pinda.entity.truck.PdTruck;
import com.itheima.pinda.entity.truck.PdTruckLicense;
import com.itheima.pinda.entity.truck.PdTruckType;
import org.mapstruct.Builder;
import org.mapstruct.Mapper;

/**
 * @author llhuang10
 * @date 2021/10/02 15:29
 */
@Mapper(builder = @Builder(disableBuilder = true), uses = {MyStringLongMapper.class})
public interface TruckDTO2Entity {


    /**
     * 车辆表 Entity <--> DTO
     */
    TruckDto conver(PdTruck pdTruck);

    PdTruck conver(TruckDto truckDto);

    /**
     * 车辆行驶证信息表 Entity <--> DTO
     */
    TruckLicenseDto conver(PdTruckLicense pdTruckLicense);

    PdTruckLicense conver(TruckLicenseDto truckLicenseDto);


    /**
     * 车辆类型表 Entity <--> DTO
     */
    TruckTypeDto conver(PdTruckType pdTruckType);

    PdTruckType conver(TruckTypeDto truckTypeDto);


    /**
     * 车队类型表 Entity <---> DTO
     */
    FleetDto conver(PdFleet pdFleet);

    PdFleet conver(FleetDto fleetDto);
}
